<html>
<head>
<title>基本信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
</head>
<body class="bodycolor">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 下属机构查看设置</span>
    </td>
  </tr>
</table>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.unionid.value=="")
   { alert("企业不能为空！");
     document.save.unionid.focus();
     return (false);
   }
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
 
</script>
<form name="save" method="post" action="?ac=<?=$ac?>&fileurl=<?=$fileurl?>&do=save">
<input type="hidden" name="savetype" value="edit" />
 <table class="TableBlock" border="0" width="90%" align="center">
  	<tr>
  		<td nowrap class="TableContent" width="150">是否开始：<? get_user_add_help()?></td>
  	    <td class="TableData">
  	  	<input type="radio" name="usertype" id="usertype" value="1" <? if ($user['usertype']=="1"){?>checked="checked" <? } ?> class="checkbox" />是 <input type="radio" name="usertype" id="usertype" value="0" <? if ($user['usertype']=="0"){?>checked="checked" <? } ?> class="checkbox" />否     	  </td>  	  	
	</tr>
	<tr>
  		<td nowrap class="TableContent" width="150">下属机构：<? get_user_add_help()?></td>
  	  <td class="TableData">
  	  	<?
		$html='<select name="unionid" class="BigStatic">';
	$html.='<option value="">请选择下属机构</option>';
	global $db;
	$query = $db->query("SELECT * FROM ".DB_TABLEPRE."union where ctype='2'  ORDER BY id Asc");
		while ($row = $db->fetch_array($query)) {
			if($row['id']==$user['unionid']){
				$hhs='selected="selected"';
			}
			$html.='<option value="'.$row['id'].'" '.$hhs.' >'.$row['name'].'</option>';
		}					 
	$html.='</select>';
	echo $html;	
		
		?> </td>  	  	
	</tr>
	<tr>
  		<td nowrap class="TableContent" width="150">&nbsp;</td>
  	  <td class="TableData">&nbsp;</td>  	  	
	</tr>
	





    
    <tr align="center" class="TableControl">
    	<td colspan="2" nowrap>
    	<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();">&nbsp;	    </td>
  </tr>
 </table>
  
</form>

 
</body>
</html>
